package org.examples.java.lang.ref;

import static org.junit.Assert.assertFalse;

import java.lang.ref.PhantomReference;

import org.junit.Test;

public class PhantomReferenceTest {

    @Test
    public void test_phantom_reference_null_queue() {
        PhantomReference<Integer> reference = new PhantomReference<Integer>(1, null);
        // since the queue is null then isEnqueued always returns false
        assertFalse(reference.isEnqueued());
    }
}
